$(function(argument) {
	// 根据con_id获取
	var face = window.sessionStorage.getItem("face");
	var strGoods = "";
	$.ajax({
		url: 'http://www.test.manage.teaweilai.com/Admin/Appbanner/EachShow',
		type: 'POST',
		dataType: 'json',
		data: {
			face: face
		},
		success: function(backdata) {
			console.log(backdata);
			var $htmlC = template('conGoods', {
				conGoods: backdata
			});
			$(".container").html($htmlC);

		}
	})
	// 点击商品详情
	$(document).on("click", ".conGoods", function() {
		console.log($(this));
		var gid = $(this).eq(0).attr('data-goods-id');
		console.log(gid);
		window.sessionStorage.setItem("gid", gid);
		console.log(window.sessionStorage.getItem("gid"));
		window.location.href="tea_detail.html";
	})
})